﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace May_26_2021
{
    class Animal
    {
        private string animaltype;

        public string Animaltype { get => animaltype; set => animaltype = value; }

        public Animal()
        {

        }
        public Animal(string animal)
        {
            this.Animaltype = animal;
        }

        public void Eat()
        {
            Console.WriteLine("{0}在吃东西",this.Animaltype);
        }
    }
}
